<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>对象解构</title>
</head>
<body>
<script>
    const person = {
        name:"liosi",
        age:18,
        sex:"man"
    }
    const {name,...others} = person;
    console.log(name);
    console.log(others);
</script>
</body>
</html>